<?php
session_start();
require_once('KLogger.php');
$log = new KLogger ( "log.txt" , KLogger::DEBUG ); 
?>


<?php
$username = $_SESSION['username'];
if($username==null || $username== ""|| $username == "")
{
	header('Location: http://172.26.195.159/checklist/php/logout.php');
}

$con = mysql_connect("localhost","root","");
mysql_select_db("checklist", $con);

$sql = "select * from cr where id='$id'";

$result = mysql_query($check);
$data = mysql_fetch_array($result);
 
$_SESSION['checklist_reviewer'] = $data['checklist_reviewer'];
$_SESSION['internal_idce_reviewer'] = $data['internal_idce_reviewer'];
$_SESSION['external_idce_reviewer'] = $data['external_idce_reviewer'];
$_SESSION['dp_prime'] =  $data['dp_prime'];
$log->logInfo('Value of external_idce_reqd'.$data['external_idce_reqd']);
$_SESSION['external_idce_reqd'] =  $data['external_idce_reqd'];



$fullname = $_SESSION['fullname'];
$id       = $_REQUEST['select_cr'];
$_SESSION['id'] = $id;
$role = $_SESSION['role'];


header('Location: http://172.26.195.159/checklist/php/mainpage.php');
?>
	